﻿<%@ Page Title="Financeiro Matrícula" Language="C#" MasterPageFile="~/Site.Master"
    AutoEventWireup="true" CodeBehind="FinanceiroMatricula.aspx.cs" Inherits="AcadPosApp.ControlarMatricula.FinanceiroMatricula" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <style type="text/css">
        .style2
        {
            width: 100%;
        }
        .style3
        {
            width: 130px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Panel ID="pnlFichaFinanceira" runat="server" GroupingText="Ficha Financeira da Matrícula">
                <asp:GridView ID="gvwFinanceiroAluno" runat="server" AutoGenerateColumns="False"
                    CssClass="mGrid" DataKeyNames="ID_FINANCEIRO,NOSSO_NUMERO" EmptyDataText="Dados não localizados..."
                    GridLines="Vertical" Width="70%" AllowPaging="True" OnPageIndexChanging="gvwFinanceiroAluno_PageIndexChanging"
                    OnRowDataBound="gvwFinanceiroAluno_RowDataBound" OnRowCommand="gvwFinanceiroAluno_RowCommand"
                    OnRowCreated="gvwFinanceiroAluno_RowCreated">
                    <AlternatingRowStyle BackColor="#D3D3D3" />
                    <Columns>
                        <asp:BoundField DataField="PARCELA" HeaderText="Parcela">
                            <HeaderStyle HorizontalAlign="Center" Width="1%" />
                            <ItemStyle HorizontalAlign="Center" Width="1%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ANO" HeaderText="Ano">
                            <HeaderStyle HorizontalAlign="Center" Width="1%" />
                            <ItemStyle HorizontalAlign="Left" Width="1%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DATA_VENCIMENTO" HeaderText="Data Vencimento">
                            <HeaderStyle HorizontalAlign="Center" Width="20%" />
                            <ItemStyle HorizontalAlign="Center" Width="20%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DATA_PAGAMENTO" HeaderText="Data Pagamento">
                            <HeaderStyle HorizontalAlign="Center" Width="20%" />
                            <ItemStyle HorizontalAlign="Center" Width="20%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="VALOR" HeaderText="Valor" DataFormatString="{0:c}">
                            <HeaderStyle HorizontalAlign="Center" Width="20%" />
                            <ItemStyle HorizontalAlign="Center" Width="20%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="VALOR_AJUSTADO" HeaderText="Valor + Juros" DataFormatString="{0:c}">
                            <HeaderStyle HorizontalAlign="Center" Width="20%" />
                            <ItemStyle HorizontalAlign="Center" Width="20%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="SITUACAO" HeaderText="Situação">
                            <HeaderStyle HorizontalAlign="Center" Width="20%" />
                            <ItemStyle HorizontalAlign="Center" Width="20%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="Imprimir" ShowHeader="False">
                            <ItemTemplate>
                                <abbr>
                                    <asp:ImageButton ID="ImgBoleto" runat="server" CausesValidation="false" CommandName="boleto"
                                        formnovalidate="formnovalidate" ImageUrl="~/Imagens/print.png" Text="Boleto"
                                        Width="20px" />
                                </abbr>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="1%" />
                            <ItemStyle HorizontalAlign="Center" Width="1%" />
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <PagerStyle CssClass="pagination" ForeColor="Black" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#1E90FF" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#808080" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#383838" />
                </asp:GridView>
                <br />
                <div class="legenda">
                    <asp:Button ID="btnParcelasRestantes" runat="server" Text="Parcelas Restantes" OnClick="btnParcelasRestantes_Click"
                        Width="150px" />
                    &nbsp;<asp:Button ID="btnBoletos" runat="server" Text="Boletos" OnClick="btnBoletos_Click"
                        Width="150px" />
                    &nbsp;<asp:Button ID="btnFichaFinanceira" runat="server" Text="Ficha Financeira"
                        OnClick="btnFichaFinanceira_Click" Width="150px" />
                    &nbsp;<asp:Button ID="btnImpostoRenda" runat="server" OnClick="btnImpostoRenda_Click"
                        Text="Imposto de Renda" Width="150px" />
                </div>
                <br />
            </asp:Panel>
            <asp:Panel ID="pnlParcelasRestantes" runat="server" GroupingText="Gerar Parcelas Restantes"
                Visible="False">
                <table class="form-inline">
                    <tr>
                        <td>
                            Data Primeiro Vencimento
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtData1Vencimento" required runat="server" Height="30px" MaxLength="10"
                                Width="150px"></asp:TextBox>
                            <asp:CalendarExtender ID="calendarioDtVencimento" runat="server" Enabled="True" TargetControlID="txtData1Vencimento">
                            </asp:CalendarExtender>
                        </td>
                    </tr>
                </table>
                <br />
                <div class="legenda">
                    <asp:Button ID="btnConfirmar" runat="server" Text="Confirmar" ValidationGroup="cadastro"
                        OnClick="btnConfirmar_Click" Width="100px" />
                    &nbsp;<asp:Button ID="btnCancelar" formnovalidate="formnovalidate" runat="server"
                        Text="Cancelar" OnClick="btnCancelar_Click" Width="100px" />
                </div>
                <br />
            </asp:Panel>
            <asp:Panel ID="pnlImpostoRenda" runat="server" GroupingText="Imposto de Renda" Visible="False">
                <table class="style2">
                    <tr>
                        <td class="style3">
                            <asp:Label ID="Label1" runat="server" Text="Ano:"></asp:Label>
                            <br />
                            <asp:DropDownList ID="ddlAno" runat="server" Width="100px">
                            </asp:DropDownList>
                            &nbsp;
                        </td>
                        <td>
                            <br />
                            <asp:Button ID="btnImprimir" runat="server" OnClick="btnImprimir_Click" Text="Imprimir" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <br />
            <div class="legenda" style="text-align: center;">
                <asp:Button ID="btnVoltarMatricula" formnovalidate="formnovalidate" runat="server"
                    Text="Voltar para Matrícula" OnClick="btnVoltarMatricula_Click" Style="text-align: left" />
            </div>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="btnFichaFinanceira" />
            <asp:PostBackTrigger ControlID="btnImprimir" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
